package lunchy.data.classes;

import lunchy.data.interfaces.ILunchyDataConnector;
import lunchy.data.interfaces.ILunchyMenuDAO;
import lunchy.data.interfaces.ILunchyOrderDAO;
import lunchy.data.interfaces.ILunchyUsersDAO;

public class CLunchyDBConnector implements ILunchyDataConnector
{
	private ILunchyMenuDAO DBMenuData;
	private ILunchyOrderDAO DBOrderData;
	private ILunchyUsersDAO DBUsersData;
	
	public CLunchyDBConnector()
	{
		
	}
	
	public ILunchyMenuDAO getMenuDAO()
	{
		if (DBMenuData == null)
			DBMenuData = new CLunchyDBMenuDAO();
		
		return DBMenuData; 
	}

	public ILunchyOrderDAO getOrderDAO()
	{
		if (DBOrderData == null)
			DBOrderData = new CLunchyDBOrderDAO();
		
		return DBOrderData; 
	}

	public ILunchyUsersDAO getUsersDAO()
	{
		if (DBUsersData == null)
			DBUsersData = new CLunchyDBUsersDAO();
		
		return DBUsersData;
	}

}
